package cn.tedu.sp09.feignFB;

import cn.tedu.sp01.pojo.Item;
import cn.tedu.sp01.vo.JsonResult;
import cn.tedu.sp09.feign.ItemFeignClient;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class ItemFeignClientFB  implements ItemFeignClient {

    @Override
    public JsonResult<List<Item>> getItems(String orderId) {
        return JsonResult.err().msg("添加商品失败");
    }

    @Override
    public JsonResult decreaseNumber(List<Item> items) {
        return JsonResult.err().msg("商品数量减少失败");
    }
}
